package com.shop.milk_tea_shop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 店铺信息表：	和店长一一对应，店长登陆即可管理开店
 * </p>
 *
 * @author yjw
 * @since 2024-06-16
 */
@TableName("shop_info_table")
@ApiModel(value = "ShopInfo对象", description = "店铺信息表：	和店长一一对应，店长登陆即可管理开店")
public class ShopInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("店铺id")
    @TableId(value = "shop_id", type = IdType.AUTO)
    private Long shopId;

    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("店长id")
    private Long managerId;

    @ApiModelProperty("联系电话")
    private String shopTel;

    @ApiModelProperty("状态（0：已注销，1：营业中，2：休息）")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime alterTime;

    @ApiModelProperty("修改用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long alterUserId;

    @ApiModelProperty("扩展字段")
    private String extra;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public String getShopTel() {
        return shopTel;
    }

    public void setShopTel(String shopTel) {
        this.shopTel = shopTel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public LocalDateTime getAlterTime() {
        return alterTime;
    }

    public void setAlterTime(LocalDateTime alterTime) {
        this.alterTime = alterTime;
    }

    public Long getAlterUserId() {
        return alterUserId;
    }

    public void setAlterUserId(Long alterUserId) {
        this.alterUserId = alterUserId;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public String toString() {
        return "ShopInfo{" +
            "shopId = " + shopId +
            ", shopName = " + shopName +
            ", address = " + address +
            ", managerId = " + managerId +
            ", shopTel = " + shopTel +
            ", status = " + status +
            ", createTime = " + createTime +
            ", createUserId = " + createUserId +
            ", alterTime = " + alterTime +
            ", alterUserId = " + alterUserId +
            ", extra = " + extra +
        "}";
    }
}
